// store.js
import { defineStore } from 'pinia'

export const useStore = defineStore('store', {
  state: () => ({
    count: 0,
    show: new Date().getHours() >= 19 || new Date().getHours() <= 7 ? true : false
  }),
//   getters: {
//     doubleCount: (state) => state.count * 2
//   },
  actions: {
    increment () {
      this.count++
    },
    decrement () {
      this.show = !this.show
    }
  }
})
